<?php

use Illuminate\Routing\Router;

Admin::routes();

Route::group([
    'prefix'        => config('admin.route.prefix'),
    'namespace'     => config('admin.route.namespace'),
    'middleware'    => config('admin.route.middleware'),
], function (Router $router) {

    $router->get('/', 'HomeController@index')->name('admin.home');
    $router->get('get_country', 'ToolCabinetController@get_country');
    $router->get('city', 'Goodscontroller@city');
    //$router->get('order_info', 'OrderController@order_info');

    //研学工具箱
    $router->resource('tool-cabinet-models', ToolCabinetController::class);
    //研学心得
    $router->resource('experience-models', ExperienceController::class);
    //研学线路 商品
    $router->resource('goods-models', Goodscontroller::class);
    //线路类型
    $router->resource('line-models', LineController::class);
    //新闻
    $router->resource('new-models', NewControllerr::class);
    //签到积分
    $router->resource('sign-point-models', SignPointController::class);

    $router->resource('store-models', StoreController::class);

//首页设置
    $router->resource('index-html-models', IndexHtmlController::class);

    //轮播图
    $router->resource('banner-models', BannerController::class);

    $router->resource('address-models', AddressController::class);
//留言
    $router->resource('leaving-message-models', LeavingMessageController::class);
//热线电话
    $router->resource('hot-phone-models', HotPhoneController::class);
//百科
    $router->resource('encyclopedias-models', EncyclopediasController::class);
    //问题答案
    $router->resource('problem-models', ProblemController::class);

    //关于我们
    $router->resource('about-us-models', AboutUsController::class);
    //报名管理
    $router->resource('order-models', OrderController::class);

    $router->resource('order-info-models', OrderInfoController::class);


});
